<%@ Control Language="c#" AutoEventWireup="false" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
<%@ Register TagPrefix="CA" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>
<script language="javascript">
<!--
var nodeLastSelected = null;
var nodeMoved = null;
var nodeNeedsResorted = false;
var newSectionNode;
var groupNodeSelected = null;
var newNodeSeq = 0;
window.top.location

// Splits the node's value and returns the SectionID part
function getSectionID(node)
{
	var splits = node.GetProperty('Value').split(":");
	
	if (splits != null)
		return splits[0];
		
	return node.GetProperty('Value');
}

function nodeSelect(node)
{
alert(getSectionID(node));
	nodeLastSelected = node;
	if (getSectionID(node) > 0)
	{
		alert(getSectionID(node));
	//	window.frames["sectionEditFrame"].location  = "IFrameHost.aspx?SectionID=" + getSectionID(node);
	}
}
//-->
</script>

<ca:TreeView id="ResLinkTree" 
		DragAndDropEnabled="false" 
		NodeEditingEnabled="false"
		KeyboardEnabled="true"
		CssClass="CommonTreeFormArea" 
		NodeCssClass="CommonTreeFormNode" 
		SelectedNodeCssClass="CommonTreeFormNodeSelected" 
		HoverNodeCssClass="CommonTreeFormNodeHover"
		LineImageWidth="19" 
		LineImageHeight="20"
		DefaultImageWidth="16" 
		DefaultImageHeight="16"
		ItemSpacing="0" 
		ImagesBaseUrl="~/themes/default/images/file/"
		NodeLabelPadding="3"
		ParentNodeImageUrl="folder.gif" 
		ExpandedParentNodeImageUrl="folder_open.gif" 
		LeafNodeImageUrl="folder_open.gif" 
		ShowLines="true" 
		LineImagesFolderUrl="~/themes/default/images/file/lines/"
		EnableViewState="true"
		runat="server"  />
		

